<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<head>
<base href="<%=basePath%>">
<script type="text/javascript" src="js/datetimeSelect.js"></script>
<link href="template/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
<!--
function openform(){
	var title = ""; 
	var url = 'userSel.jsp';
	var pageUrl="userSel.jsp";
	var paraObj = new Object();
	
	paraObj.url=url;
	paraObj.title=title;
	var obj=document.getElementById('toPersons');
	paraObj.input=obj;
	//var sFeatures = 'help:no;status:0;dialogHeight:440px;dialogWidth:350px;center:1;unadorned:0;edge:sunken';
	var sFeatures = 'help:no;status:1;dialogHeight:500px;dialogWidth:350px;center:1';
    var rtnObj= window.showModalDialog(pageUrl,paraObj,sFeatures );
    //alert('rtnObj='+rtnObj);
	if(rtnObj){
		var result=rtnObj.result;
		obj.value=result;
	}else{
	}
}
//-->
</script>
</HEAD>
<BODY>
<table class="body">
	<tr>
		<td valign="top" align="center" class="bodyTd">

<div class="dataviewRow">
	<div class="dataviewTitlebg">
		<div class="dataviewTitle">短信发送</div>
	</div>
	<form name="SmsSendForm" method="post" action="sendMessage" onsubmit="return true;" encType='multipart/form-data'>
	<table class="soformTb">
		<tr>
			<td align="right">接收对象：</td>
			<td style="align:left;">
				<textarea name="toPersons" id="toPersons" readonly="readonly" style="width:350px;height:60px;background-color: #eeeeee;"></textarea>
				<input type="button" name="" value="选择" onclick="openform();" class="btn">	
			</td>
		</tr>
		<tr>
			<td align="right">接收号码：</td>
			<td style="align:left;">
				<input type="text" name="toMobiles" value="" style="width:350px;">
				接收号码以半角分号";"隔开！
			</td>	
		</tr>
		<tr>
			<td align="right">号码文件：</td>
			<td style="align:left;">
				<input type="file" name="mobilefile" value="" style="width:350px;">
				
			</td>	
		</tr>
		<tr>
			<td align="right">短信标题：</td>
			<td style="align:left;">
				<input type="text" name="title" maxlength="70" value="" style="width:350px;">
			</td>	
		</tr>
		<tr>
			<td align="right">短信内容：</td>
			<td>
				<textarea name="content" style="width:350px;height:60px;"></textarea>				
			</td>	
		</tr>	
		<tr>
			<td align="right">需要回复：</td>
			<td>
				<input type="radio" name="needup" value="0" checked="checked">不需要
				<input type="radio" name="needup" value="1">需要					
			</td>	
		</tr>		
		<tr>
			<td align="right">发送时间：</td>
			<td>
				<input type="radio" name="sendKind" value="0" checked="checked">即时发送
				<input type="radio" name="sendKind" value="1">定时发送
				<input type="text" name="datehm"	readOnly onClick="setDayHM(this);">
			</td>	
		</tr>
		<!-- 
		<tr>
			<td align="right">是否存档：</td>
			<td>
				<input type="radio" name="saveTemp" value="0" checked="checked">是
				<input type="radio" name="saveTemp" value="1">否
			</td>	
		</tr>	
		 -->						
		<tr>
			<td align="center" colspan="2">
				<input type="hidden" name="method" value="send">
				<input type="submit" value="确定" class="btn">	
				<input type="reset" value="重置" class="btn">					
			</td>
		</tr>	
	</table>
	</form>		
	<!-- soformTb -->
</div>
		</td>		
	</tr>
</table>
</BODY>
